<?php
namespace Admin\Factory\Controller;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Admin\Controller\AuthController;

class AuthControllerServiceFactory implements FactoryInterface
{
	public function createService(ServiceLocatorInterface $serviceLocator)
	{
		$authService = $serviceLocator->getServiceLocator()->get('Zend\Authentication\AuthenticationService');
		$controller = new AuthController($authService);

		return $controller;
	}
}